/**
 * Created by bdbs on 2017/6/20.
 */
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import 'babel-polyfill';
import App from './App';
import { axiosInstance } from './app.config';
import './icons/iconfont.css';
import reducers from './reducers/reducers';

const user = { name: 123 };

const store = createStore(reducers,
  { user },
  applyMiddleware(thunk.withExtraArgument(axiosInstance))
);

ReactDOM.render(
  <Provider store={store}>
    <App />
  </Provider>,
  document.getElementById('app')
);
